added new method to handle spannable