adds inline commands
remove unneeded c variable