input from stdin added