prototypes inheritance fixed