adding mod and inputc, deletes neg