final creation code