fixed build procedure