got sorting to work
trimming fast branches initial implementation