rendering works correctly