common functions for sl6