add main part of prototype