pre class commit