added >= <=
clamp and logn