more correct usage of prototypes