generated for posts controller