fixed closing procedure