refactor per feed back
return database range