trying to fix senior thesis problem