fixing erros