added elif to avoid error