made changes to test validity