added APPLE if