think (ps) is placing a garbage value at the end