change checking for results in views