fixing scaling issue