changed destructuring and moved the file