first commit with code from poole