adding controlError class