first piered version working.