code and input marking now works