function to get single unit details