modifie dto use non psychopy way of saving trials