modified global controller