added new function.
more coding practice