make the compiler happy by not using square bracket notation thanks @ahocevar