adding get right function