got the status switch right