fixes #8

remove empty dict, use max