function added for fetching movies