implmented post method