every output is correct, can't understand why it is not working even though i have elaborated it