added apple safety