fix function whitespace issues cc @Jonahss