added a tiny bit of valudation