use 'master' instead of 'HEAD'
proper variable naming and passing