sampling math operations