combine this with the unless block above (change it to an if-else)