removed useless setSize and getSize functions