get rid of warnings caused buy use of defined