apply with more code style