first try at resize