pass in isTrans to prevent crashing