clean code & delete checking the pointer that is dereference already