removed die statement for testing