improved for test