multi users / main function finished