final version working also on jelly bean