i hite me lose heart to learn how to use namespace and drop global variables