implemented less-than and equal-to functions