now works status switching but not complete yet