reverted to his version fixed the errors