added render macro
updated