impl paticular behive during rotate device and refactoring