get rid off the two mains for now (exact same code)