added methods as functions test