add methods to prototypes