fix type declaration circle