added small function in order to ease migration