added extra condition for isliteral