maxspan implemented