formating core