compile warning - remove unused max