compiled for safari 6