working on swtiching programs