updated docs and added condition for related items