changed hwversion to int