swapped location of render methods