made check in enumerate_doses more semantic