another spaghetti code just for backup

the next will be better..