added a little helper fxn