got rid of assert. still doesn't work