debugging code

memory seems fine with script, not sure why server is freaking out
fix noon hour subtraction