added quality controls