second update - solved accessviolationexception