added 2 udacity functions