created function Fixed #5