make get method more flexible