remove spec code from after block