added else in case it wasn't catching the condition