updated bug in method