for internal lottery