compile scope