uncommented check, changed names to lower case, added break at end of "permission"