added fetching by code