add delete keyword, fix function keyword ordering