postfix if and added comment about the api key