fixing scaling issues