moved to using .prototype