adding lsf lsm functions