introducing section of code to write small control functions