handle any size mesh