when the return has too much logic, it is better do an assignation before the return and just return the value