helps with keeping code from being nested