more mac functions added