took out p rect globals