usage of detete methods fixed #3