finally a working example not using stupid inputfields