finilized main