got rid of hardcoded 256