rename getPMax methon