better error handling
adding comparison