no idea what this was trying to do, but it's wrong
make controls work, no idea what the hardcoded values are