using signed decimal (%d) instead of nonexistent variable type (%i)