controller now works