added let statements and refactored as to keep it DRY
callbacks are fun
callback fun!