deleting "toInstance" for locker