add details function, undefined items