* cleanup & fix a potential div by 0