Fixing erros and unneeded outcomming message 'true'