added creation and leave one out functionality