changed nodeport var to be cap