move after items function inside if()