combine in one method working of getting unit