asIsCode is introduced to get rid of spec in code