fixed the hspace creation and used kset