alter main function