fixed number format exception, would do it differently but wanna keep it to a oneline modification