get level distance func. added