debugging
fixed conditional bug in new item creation