pull trigger code