fixed scoping