removing legacy function