bugfix get function