code style update on lsh.r