changed out deprecated syntax