added fcn for easy use