pass over box size to rener functions