added spec code