added scale resizeing