use for_else statetment to make code clear