refactored api
initial sorting