deleted unnecessary variables = null in controlers