complete csem opeation skeleton code