moved functionality for creating items