removed resize logic (was unstable)