fixed forward ref error