changed int to object as fix for issue #22