fix copy and paste, and use override keyword