changed deprecated syntax