remove apply function when inheritance
format code style