updated POST method