updated to accomdate uppercase commands