working towards resize logic... (not yet finished).