add scale fn
calculate axis labels properly
move fns in file