convert Compose to Up