add this in the getSalary method,make more senese