tested ok with two buttons