fixed quartz implementation