updated post method