adding if- else condition inside "+" method