added a shortcut def[] to help with implementing on d.com