converted everything to prototypes.