made code compilable in indigo