fix errors with copy and paste