there is a native method for that