spec removed from code function