non working version (2 issues to fix)