prepare for projecting and unprojecting