adapting to previous interface