load common function