custom code attempt 22.10.07