refactoring and start of ssao again