using bind to pass object methods as callbacks