some refactorings and useful abbreviations