fix wrong comparison
update docs