removing wrong logic

removed a faulty logic line in the code.