debbuging mode.. created infinite loop