function lsat implemented