work with main