removed some whitespace from code as well as commented out dd() and var_dump()