changed post variable to object