works fine using Dummy data