add where used functionality