prepare post class