dont't scroll code out of range