refactoring vibration brick