formatting and unifying the scripts