function: some fixes
function: start small function optimization
function: simplify comparison semantics