added elif and else