fixed getPost method array