resize function not working - commenting out for now