properly convert between views