rewriting rendering checking
working on rendering