implement setBounds