redo code to make lowercase throughout