cleaned up clone.c