taking dims from user