fix inheritance syntax