tweak to add trial frequency