fix infinitive recussion error