moved wait trigger to method