included LMS algo