replaced get_called_class() with get_class($this) in non-static context