simplified for testing