fixed addDrawable function