Working on atomic switch model