rewrite get_items to truly only take one query
fix typo