cleaned up as4 sub for function expressions