removing deprecated function