added window getsize() func