moved code over to item file