moving post method up to public