setsizes ---- prototype...not completed