handle errors and comment out forgotton print