add correct steps to script, fix align function