slight optimization to fix stupidity