improving get method