added post attributes and changed back to non self method