error in code fix