changed hand and refactored