added special code for apple