fixed depricated syntax