fixing the usecase of getting false boolean value