fixes to micro algorithms