added another funtion, which uses built-in in.