style fix and load function