untitled items: rewrite code to be more readable