avoid deprecated syntax