updated code to get rid off forces cube structure - not debugged yet