first working version tested on phone