add try except in case value is also messed up