range based rendering done, needs further testing