trying to modularize. validation still suceeds.