moving trial analysis to trials directory