adapted getsimilarbyid