moved references up