added some checks for subs() behavior