make backword compatible upto api level 7