dealt with resize bug in pretty janky way