added a compatibility function