adding api logic