got rid of an 'undefined Offset' notice