got it, now I need to make it adaptive