get result using bins