fixed deprecated function call. closes #11