corrected mixins to grab prototype of functions given