removing ps from input list