under what conditions is this `ValueError` thrown? if it can be due to a user error maybe is a good idea to print some message here...