consolidating unnecessary controller variables