reformat + fix prototype error