more code on xdiary