fix formatting of init function