added object as third parameter to callback