started coding adapatation mechanism