removed duplicated code for meta