improve code quality of Robots