program is working properly but not satisfying all the conditions