get meta once instead of twice