Working version if 1a