use better name for function, add license