updated from deprecated syntax