make code not require infinitas to run