fixed bug and highlight maximum occurrence