Changed some unnecessary befores to lets and fixed some spacings to fit conventions