added CANDY1 code