Moved the line of codein line 218 before return stmt