removed warning

though the previous version should be fine, my IDE complained about it