fixed a* comparator