changed inheritance to avoid php errors