trying to fix validation