basic resize implemented