problem with inherit of subs when call