updated with addslashes