getting rid of lock object for @synchronized