added exception into doctstring wip