modify to fix type declaration to avoid warning