added error instead of just printing something out