make sure elements are supported, still doesn't assign numbers properly