fixed reference and make scale actually scale