created apple and microsoft functions