make it compatible to old view