revised after comments received
working with Y/N