added Code from difrent prodjekt to work whit