refactored so cpu takes correct corner when necessary