new version with usercontroller work well