removing non function methods