added a bit more validation