it has some logic but every time I do that it's failing