validation part b done and cleanup