replaced != with strcmp