added auto declaration to smpl