stupid range error, not thinking