main func ready