messy solution for 0 time percent