added function with boolean argument and return boolean