made get_gaps static or it will not work from within the editing form