first eomwhat functioning  version
version works as long as you do not edit
version widh edit working