add ps function , but dont arrange it