spec code adding