checking functions with console