added first parts of code (not usable)