clean code to get rid of compiler warning