updated change to setPost method