actually read the docs, take out redundant calls from code I copied