added scales stuff