change main() to up