adding notes to stored procedure for learning purposes