refactoring front and back wheeling and better constants