working version with simple values