worked with two way binding