beginning to setup logic