changed tickformat, fixed compute period