working version on spring