ex bugfix
bugfixes
better top algorithm
better top algorithm