added is_mashout method and sorting