improved variable naming
exit calling all functions on an error