added two variants of ruler function