refactor for lesson id (func pending)