refining haute gem and kss implementation