first version working.