added drawloop