problem is that elsif cant be used with unless and I needed it