changed name of 'type' to 'object'