added query and reg post