use new function to get POST variables