phrs almost done. implemented delete