fix implicit declarations