added _capitalize() function