copied code, fixed it