add varibles for cycle
Added Two new Functions to graphicengine