main final v1.0