adjusted demo controller for testing