Code optimization

Deleted colon. function pj now accept array as parameter