Closing errors using the conditionals