update to P5

removed unneccessary code for the problem and cleaned the process up
some