added return res