creating version again as variable is losing scope, need to investigate properly